home *** CD-ROM | disk | FTP | other *** search
- {
- File: Print multipage PICT.p
-
- Contains: Print multipage PICT: Takes a PICT larger than one page and "tiles" it so that
- it prints across the right number of sheets of paper to tape together and make
- a poster, like many drawing applications. You can find a slightly cleaner
- version of this routine as part of Pascal Sample 3.0.
-
- Written by:
-
- Copyright: Copyright © 1984-1999 by Apple Computer, Inc., All Rights Reserved.
-
- You may incorporate this Apple sample source code into your program(s) without
- restriction. This Apple sample source code has been provided "AS IS" and the
- responsibility for its operation is yours. You are not permitted to redistribute
- this Apple sample source code as "Apple sample source code" after having made
- changes. If you're going to re-distribute the source, we require that you make
- it clear in the source that the code was descended from Apple sample source
- code, but that you've made changes.
-
- Change History (most recent first):
- 7/26/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1
-
-
- }
- program PrintMultiPage;
-
- uses
- Printing,print,Quickdraw,Fonts,Windows,Menus,Dialogs,Events;
-
- var
- ignoreResult: BOOLEAN;
- myPrintRecord: THPrint;
-
- begin
- InitGraf(@qd.thePort);
- InitFonts;
- FlushEvents(everyEvent, 0);
- InitWindows;
- InitMenus;
- TEInit;
- InitDialogs(nil);
- InitCursor;
-
- myPrintRecord := THPrint(NewHandle(sizeof(TPrint)));
- PrOpen;
- PrintDefault(myPrintRecord);
- ignoreResult := PageSetup(myPrintRecord);
- ignoreResult := Print(myPrintRecord);
-
- end.